home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Script / Scriptable Apps Searcher 1.0 / Read Me next >
Encoding:
Text File  |  1994-06-15  |  7.4 KB  |  84 lines  |  [TEXT/ttxt]

  1. Scriptable Apps Searcher 1.0 © June 15th, 1994
  2.  
  3. Martin Bowen
  4. 3009 Windsor Drive
  5. Alameda, CA 94501
  6. USA
  7.  
  8. E-Mail: mbowen@uclink.berkeley.edu
  9.  
  10.  
  11. WHAT IS IN THIS PACKAGE?
  12. The following components make up the package Scriptable Apps Searcher version 1.0:
  13.                     •  AppleScript Apps Searcher 1.0
  14.                     •  GTQScriptingLibrary1.1
  15.         A set of osax, or scripting extensions, which provide the scriptor with greater options.  This library was written by Gregory T. Quinn and is included in this package with the consent of the latter because Scriptable Apps Searcher depends on it.  See below for additional details.
  16.                     • Finder Liaison 1.1 and Progress Bar 1.0.1
  17.         These scripting utilities are required by Scriptable Apps Searcher.  They were written by Gregory H. Dow, and are included in this package with his consent.    
  18.                     • this “Read Me” file.
  19.  
  20. Although this application depends on the other parts of this package,  this extra overhead has proven to be a necessity in order to produce powerful and useful scripts, and I’m certain other developers will be using these additions in the future.  For your convenience, they have been bundled with this first version of Scriptable Apps Searcher.
  21.  
  22.  
  23. INSTALLATION
  24.     It is assumed here that the AppleScript® scripting language system has been entirely installed.  Scriptable Apps Searcher requires the use of the scripting additions originally installed.
  25.     Scriptable Apps Searcher also depends only on the following osax scripting extensions contained in the GTQScriptingLibrary:
  26.         - Choose Files & Folders
  27.         - File IO
  28.         - List Resource Types in
  29.         - Make Alias
  30. Although you may decide to install only the above, I suggest that all the additions contained in the GTQScriptingLibrary be placed in the folder Scripting Additions, in the Extensions folder of the startup System Folder.  They could come in handy in the future.
  31.     Finally, place Finder Liaison and Progress Bar in the same folder as Scriptable Apps Searcher, at least at first, so that the latter will locate them easily on the first run.  You may thereafter move them to a more convenient location.
  32.  
  33.  
  34. WHAT IS THIS UTILITY?
  35.     This utility, for one, is the first serious result of my thrive to learn AppleScript®, the scripting language developed by Apple™.  I originally noticed that one of the weaknesses of this scripting language as a tool to control applications is that few of the latter can actually be scripted.  Most of them do not understand AppleScript invocations.
  36.     To figure out exactly which ones I could use AppleScript with, I designed this utility, which will browse through a directory  and its sub-directories looking for “scriptable” applications.
  37.     As is the case with any programming project, bells and whistles soon became a necessity.  This original version packs those which I found indispensable (to make this product a serious one...).
  38.  
  39.  
  40. WHAT DOES IT DO?
  41.     As I’ve mentioned earlier, this application will inspect a directory and its minions in search of scriptable apps.
  42.     You can use this droplet in either of two ways.  By simply opening it, you can select a folder to peruse.  The less banal (and more practical!) way, though, is to drop the folder you wish to be searched onto it.
  43.     You are given the option to display a progress bar.  The catch behind this feature is that, in order to work, the items in the folder and its sub-folders must first be counted up.  AppleScript 1.0 does not offer the scriptor any neat way of counting these items.  Both the scriptable Finder and AppleScript 1.1 make this task much easier, but I do not possess either of them yet.
  44.     I thought it would be a good idea to create aliases of any scriptable apps encountered in a new or designated folder instead of merely keeping a list, since thereafter Script Editor can be used to easily access the dictionaries (a list of AppleScript commands accepted by the app) of these apps.
  45.  
  46.  
  47. TROUBLESHOOTING
  48.     Surprisingly (or perhaps not so!), most of the code that runs this utility amounts to traps in the event an error occurs.  I’ve dealt with the problem of possible conflicts in naming, both of the new folder for the aliases to be placed in, if the user so chooses, and of aliases for scriptable applications that have been found.
  49.     I believe I have addressed any possible pitfalls with respect to every eventuality possible under “normal” circumstances.  By “normal”, I do not include the following:
  50.         - an unsuccessful installation of AppleScript and/or this package.
  51.         - any error arising from a corrupted system or faulty media.
  52.         - any error arising from a corrupted file, folder, desktop file.
  53.  
  54.  
  55. DISTRIBUTION/DISCLAIMER
  56.     AppleScript Apps Searcher is freeware. You may therefore copy and distribute this package under the following conditions:
  57.         - this package, and notably Scriptable Apps Searcher, must only be distributed complete (as described above in the intro) and intact, in the way you received it.
  58.         - I retain all rights over the intellectual contents of the application Scriptable Apps Searcher.
  59.         -  this package may not be uploaded to any site which receives monetary compensation for its services as a function of time spent.  Examples of such sites include CompuServe, AOL.  You may upload this product to sites operating under a fixed membership fee, such as the BMUG BBS. Anonymous ftp sites, such as mac.archive.umich.edu, are fine.
  60.         -  the authors of the other components of this package have secured rights of their own.  You must abide by them.  Inspect their “Read Me” or documentation files for more details.  These rights in no way (I hope not!) interfere with the rights I have claimed above.
  61.     I reject any responsibility incurred from any form of damage caused by this product.  Although I believe this product to be innocuous, and have removed any possible bugs to the best of my ability and knowledge, this package comes as is, without warranty of any kind.
  62.     In the event you do not agree with any aspect of the above legal disclaimer, you must destroy any copies you have made of this software package.
  63.  
  64.  
  65. POSSIBLE INNOVATIONS
  66.     - In order to circumvent the delay behind using a progress bar, I could offer the user the option of entering the total number of items- information readily available through the Get Info window in the Finder, in himself via a dialog box.  This would drastically cut overall time spent.
  67.     - Play a sound when done. It could possibly be stored as a resource in this application...
  68.         Anything you feel is worthwhile (within limits)!  If you find any bugs, please let know. Send comments/suggestions to my US address, or E-Mail me.
  69.  
  70. I would like to thank Derrick Schneider for the advice he gave me regarding technicalities associated with the development of this product.  Kudos also go to Rich Martin for his original implementation of leafName, a subroutine that returns the name of a Finder object given its path.
  71.  
  72. As I’ve said, this product is freeware.  Nevertheless, if you are so inclined as to help me out with a donation, I’d be more than glad to include you on the mailing list for future versions of this package. Hey, as a college student, I have to find a way to make ends meet when the time comes to pay the bills!  Thanks for any possible support.
  73.             
  74.                                   Martin Bowen
  75.             
  76. Again, here are the ways to contact me.
  77.     Martin Bowen         (permanent address, not local to campus)
  78.     3009 Windsor Drive
  79.     Alameda, CA 94501
  80.     USA
  81.     
  82.     E-Mail: mbowen@uclink.berkeley.edu
  83.  
  84. AppleScript®, Apple™ are registered trademarks are Apple Computer, Inc.